# Use an official Python runtime as a parent image
FROM amd64/python:2.7-alpine

# add require for python
RUN   pip  install    -i  https://mirrors.aliyun.com/pypi/simple  --trusted-host mirrors.aliyun.com  bottle==0.12.19




# Set the working directory to /app
WORKDIR /opt/pyapp

# Copy the current directory contents into the container at /app
ADD ./k8sapp.py  /opt/pyapp

# Install any needed packages specified in requirements.txt

# Make port 8080 available to the world outside this container
EXPOSE 8080

# Define environment variable
ENV NAME World

# Run app.py when the container launches
CMD ["python","k8sapp.py"]


